import os.path
import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
# file = 'file:///' + os.path.abspath('html/popup.html')
file = os.path.join(os.path.abspath('html/radio-checkbox.html'))
driver.get(file)
driver.maximize_window()

ele1 = driver.find_element(By.ID, 'boy')
time.sleep(2)
ele1.click()
print(ele1.is_selected())

time.sleep(2)
ele2 = driver.find_element(By.ID, 'girl')
print(ele2.is_selected())
time.sleep(2)
ele2.click()
print(ele2.is_selected())

time.sleep(2)
driver.quit()
